package cn.jiyun.controller;

import cn.jiyun.common.config.Result;
import cn.jiyun.entity.Zjgl;
import cn.jiyun.service.ZjglService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/zjgl")
@CrossOrigin
public class ZjglController {

    @Autowired
    private ZjglService zjglService;
    @RequestMapping("/findPage")
    public Result findPage(Integer pageNum,Integer pageSize,@RequestBody Zjgl zjgl){
        Page page1=zjglService.findPage(pageNum,pageSize,zjgl);
        return Result.ok(page1);
    }
}
